import tkinter as tk
from model.tank_model import Tank


baseWindow=tk.Tk()
my_tank=None



def setWindowProperties(base_window):
    base_window.title("坦克世界")
    base_window.geometry("1080x720+100+100")

def on_key_press(event):
    my_tank.on_key_pressed(event.char)


setWindowProperties(baseWindow)

baseWindow.bind("<Key>",on_key_press)

my_tank=Tank(baseWindow,"resource/tank.jpg",x=200, y=50, width=200, height=200)
my_tank.create_tank_ins(0)


baseWindow.mainloop()